package com.maxd.utils.pdd;

//import com.pdd.pop.ext.fasterxml.jackson.annotation.JsonProperty;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author fang
 * @date 2021/2/1
 */
public class PopBaseHttpResponse {
    @JsonProperty("error_response")
    private PopBaseHttpResponse.ErrorResponse errorResponse;
    @JsonProperty("request_id")
    private String requestId;

    public PopBaseHttpResponse() {
    }

    public PopBaseHttpResponse.ErrorResponse getErrorResponse() {
        return this.errorResponse;
    }

    public PopBaseHttpResponse.ErrorResponse setErrorResponse(PopBaseHttpResponse.ErrorResponse errorResponse) {
        return this.errorResponse=errorResponse;
    }

    public String getRequestId() {
        return this.requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public static class ErrorResponse {

        private String requestId;

        private Integer errorCode;

        private String errorMsg;

        private String subCode;

        private String subMsg;

        public ErrorResponse() {
        }

        public void setRequestId(String requestId) {
            this.requestId = requestId;
        }

        public void setErrorCode(Integer errorCode) {
            this.errorCode = errorCode;
        }

        public void setErrorMsg(String errorMsg) {
            this.errorMsg = errorMsg;
        }

        public void setSubCode(String subCode) {
            this.subCode = subCode;
        }

        public void setSubMsg(String subMsg) {
            this.subMsg = subMsg;
        }

        public String getRequestId() {
            return this.requestId;
        }

        public Integer getErrorCode() {
            return this.errorCode;
        }

        public String getErrorMsg() {
            return this.errorMsg;
        }

        public String getSubCode() {
            return this.subCode;
        }

        public String getSubMsg() {
            return this.subMsg;
        }
    }
}
